package com.zs.blog.converter;

import com.zs.blog.model.dto.ArticleDTO;
import com.zs.blog.model.entity.Article;
import com.zs.blog.model.entity.Menu;
import com.zs.blog.model.vo.*;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Title: ArticleConverter
 * @Author zs
 * @Package com.zs.blog.converter
 * @Date 2024/12/16 22:04
 * @description: 文章相关的属性转换器
 */
@Mapper(componentModel = "spring")
public interface MenuConverter {

    MenuConverter INSTANCE = Mappers.getMapper(MenuConverter.class);

    List<MenuLabelListVO> menuList2MenuLabelListVO(List<Menu> menuList);

}
